package utils;

/**
 * 上传qiniu 文件类型
 * Created by pujin on 2015/8/28.
 */
public enum QiniuSpaceType {
    _public(0), _private(1);
    private int value;

    private QiniuSpaceType(int value) {
        this.value = value;
    }

    public static QiniuSpaceType valuesOf(int value) {
        switch (value) {
            case 0:
                return _public;
            case 1:
                return _private;
            default:
                return null;
        }
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
